/*
 * @author Janusz
 */
package kolekcje.powtorka.czwarta;

public class Book {

	private String title;

	public Book(final String t) {
		this.title = t;
	}

	public final String getTitle() {
		return title;
	}

	@Override
	public final String toString() {
		return this.title;
	}

	@Override
	public final int hashCode() {
		return this.title.hashCode();
	}

	@Override
	public final boolean equals(final Object o) {
		Book b = (Book) o;
		return this.title.equals(b.getTitle());
	}
}
